<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ include file="/pages/inc/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><fmt:message key="sonarservices.form.title"/></title>
<%@ include file="/pages/inc/header.jsp" %>
</head>
<body>
<%@ include file="/pages/inc/common.jsp" %>
<div id="container" class="container-fluid">
    <div class="barTitle">
		<span><fmt:message key="sonarservices.form.title"/></span>
	</div>
	<form id="sonarservicesForm" action="<c:url value='/sonarservices/save'/>"  method="post" >
      <div class="ui-table ui-border">
       <table class="table">
       	<tbody>
			<tr>
				<td class="inputLabelTd"><fmt:message key="sonarservices.form.projectId"/>：</td>
				<td class="inputTd">
					<input id="projectId" name="projectId" type="text" class="text"/>
				</td>

				<td class="inputLabelTd"><fmt:message key="sonarservices.form.serviceName"/>：</td>
				<td class="inputTd" colspan="0">
					<input id="serviceName" name="serviceName" type="text" class="text"/>
				</td>

			</tr>
		</tbody>
		<tfoot class="footTd">
			<tr>
				<td class="inputTd" colspan="4">
					<button id="submit_button" class="button" type="button" onclick="save(this);"><fmt:message key='button.submit'/></button>&nbsp;&nbsp;
        			<button id="reset_button" class="button" type="reset"><fmt:message key='button.reset'/></button>&nbsp;&nbsp;
        			<button id="back_button" class="button" type="button" onclick="window.location = '<c:url value="/sonarservices"/>'"><fmt:message key='button.back'/></button>
				</td>
			</tr>
		</tfoot>
	  </table>
	 </div>
	</form>
</div>
<%@ include file="/pages/inc/footer.jsp" %>
<script type="text/javascript">

	function save(button){
		form = button.form;
		if(!biz.validate("valid",form)){
			showWarn("<fmt:message key='validation.object'/>",3000);
			return;
		}
		form.submit();
	}
	
</script>
</body>
</html>
